3.2.6 \(\int \frac {1}{\sqrt {1-x^2} (1+x^2)} \, dx\)

Optimal. Leaf size=25 \[ \frac {\tan ^{-1}\left (\frac {\sqrt {2} x}{\sqrt {1-x^2}}\right )}{\sqrt {2}} \]

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {377, 203} \begin {gather*} \frac {\tan ^{-1}\left (\frac {\sqrt {2} x}{\sqrt {1-x^2}}\right )}{\sqrt {2}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[1/(Sqrt[1 - x^2]*(1 + x^2)),x]

[Out]

ArcTan[(Sqrt[2]*x)/Sqrt[1 - x^2]]/Sqrt[2]

Rule 203

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTan[(Rt[b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[b, 2]), x] /;
 FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])

Rule 377

Int[((a_) + (b_.)*(x_)^(n_))^(p_)/((c_) + (d_.)*(x_)^(n_)), x_Symbol] :> Subst[Int[1/(c - (b*c - a*d)*x^n), x]
, x, x/(a + b*x^n)^(1/n)] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && EqQ[n*p + 1, 0] && IntegerQ[n]

Rubi steps

\begin {align*} \int \frac {1}{\sqrt {1-x^2} \left (1+x^2\right )} \, dx &=\operatorname {Subst}\left (\int \frac {1}{1+2 x^2} \, dx,x,\frac {x}{\sqrt {1-x^2}}\right )\\ &=\frac {\tan ^{-1}\left (\frac {\sqrt {2} x}{\sqrt {1-x^2}}\right )}{\sqrt {2}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 25, normalized size = 1.00 \begin {gather*} \frac {\tan ^{-1}\left (\frac {\sqrt {2} x}{\sqrt {1-x^2}}\right )}{\sqrt {2}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[1/(Sqrt[1 - x^2]*(1 + x^2)),x]

[Out]

ArcTan[(Sqrt[2]*x)/Sqrt[1 - x^2]]/Sqrt[2]

________________________________________________________________________________________

IntegrateAlgebraic [A]  time = 0.08, size = 33, normalized size = 1.32 \begin {gather*} -\frac {\tan ^{-1}\left (\frac {\sqrt {2} x \sqrt {1-x^2}}{x^2-1}\right )}{\sqrt {2}} \end {gather*}

Antiderivative was successfully verified.

[In]

IntegrateAlgebraic[1/(Sqrt[1 - x^2]*(1 + x^2)),x]

[Out]

-(ArcTan[(Sqrt[2]*x*Sqrt[1 - x^2])/(-1 + x^2)]/Sqrt[2])

________________________________________________________________________________________

fricas [A]  time = 0.63, size = 23, normalized size = 0.92 \begin {gather*} -\frac {1}{2} \, \sqrt {2} \arctan \left (\frac {\sqrt {2} \sqrt {-x^{2} + 1}}{2 \, x}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(x^2+1)/(-x^2+1)^(1/2),x, algorithm="fricas")

[Out]

-1/2*sqrt(2)*arctan(1/2*sqrt(2)*sqrt(-x^2 + 1)/x)

________________________________________________________________________________________

giac [B]  time = 0.60, size = 51, normalized size = 2.04 \begin {gather*} \frac {1}{4} \, \sqrt {2} {\left (\pi \mathrm {sgn}\relax (x) + 2 \, \arctan \left (-\frac {\sqrt {2} x {\left (\frac {{\left (\sqrt {-x^{2} + 1} - 1\right )}^{2}}{x^{2}} - 1\right )}}{4 \, {\left (\sqrt {-x^{2} + 1} - 1\right )}}\right )\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(x^2+1)/(-x^2+1)^(1/2),x, algorithm="giac")

[Out]

1/4*sqrt(2)*(pi*sgn(x) + 2*arctan(-1/4*sqrt(2)*x*((sqrt(-x^2 + 1) - 1)^2/x^2 - 1)/(sqrt(-x^2 + 1) - 1)))

________________________________________________________________________________________

maple [A]  time = 0.01, size = 28, normalized size = 1.12 \begin {gather*} -\frac {\sqrt {2}\, \arctan \left (\frac {\sqrt {2}\, \sqrt {-x^{2}+1}\, x}{x^{2}-1}\right )}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(x^2+1)/(-x^2+1)^(1/2),x)

[Out]

-1/2*2^(1/2)*arctan(2^(1/2)*(-x^2+1)^(1/2)/(x^2-1)*x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{{\left (x^{2} + 1\right )} \sqrt {-x^{2} + 1}}\,{d x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(x^2+1)/(-x^2+1)^(1/2),x, algorithm="maxima")

[Out]

integrate(1/((x^2 + 1)*sqrt(-x^2 + 1)), x)

________________________________________________________________________________________

mupad [B]  time = 0.37, size = 79, normalized size = 3.16 \begin {gather*} \frac {\sqrt {2}\,\ln \left (\frac {\frac {\sqrt {2}\,\left (-1+x\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{2}-\sqrt {1-x^2}\,1{}\mathrm {i}}{x-\mathrm {i}}\right )\,1{}\mathrm {i}}{4}-\frac {\sqrt {2}\,\ln \left (\frac {\frac {\sqrt {2}\,\left (1+x\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{2}+\sqrt {1-x^2}\,1{}\mathrm {i}}{x+1{}\mathrm {i}}\right )\,1{}\mathrm {i}}{4} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/((1 - x^2)^(1/2)*(x^2 + 1)),x)

[Out]

(2^(1/2)*log(((2^(1/2)*(x*1i - 1)*1i)/2 - (1 - x^2)^(1/2)*1i)/(x - 1i))*1i)/4 - (2^(1/2)*log(((2^(1/2)*(x*1i +
 1)*1i)/2 + (1 - x^2)^(1/2)*1i)/(x + 1i))*1i)/4

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\sqrt {- \left (x - 1\right ) \left (x + 1\right )} \left (x^{2} + 1\right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(x**2+1)/(-x**2+1)**(1/2),x)

[Out]

Integral(1/(sqrt(-(x - 1)*(x + 1))*(x**2 + 1)), x)

________________________________________________________________________________________